import java.util.Scanner;

public class wx5 {

    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int sum = 0;
        for (int i = 1; i <= 5; i++) {
            System.out.print("请输入成绩:" + i);
            int a = sc.nextInt();
            if (a > 100 || a < 0)
                System.out.println("该成绩有误，不列入计算");
            else if (a >= 0 || a <= 100) {
                sum += a;

            }

        }
        System.out.println("所有成绩的总和为：" + sum);
    }
}




    


